<?php
/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-8
 * Time: 0:07
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */
/**
 * Sql 队列 先进先出 后进后出
 */
$queue= new SplQueue();

$queue->enqueue("data1\n");
$queue->enqueue("data2\n");

echo $queue->dequeue();
echo $queue->dequeue();
//echo $queue->dequeue();
//echo $queue->dequeue();